<td><input type="checkbox" name="id[]" value="{$vo.id}"></td>
<td>{$vo.id}</td>
<td>
    <!--查找酒店名称-->
    {if !empty($vo['hotel_id'])}
    <?php
        echo Db::name('hotel')->where('id',$vo['hotel_id'])->value('hotel_name');
     ?>

    {/if}
</td>
<td>{$vo.hotel_location|high_light=$Request.param.hotel_location}</td>
<td>{$vo.start_time}</td>
<td>{$vo.end_time}</td>
<td>{$vo.remark|high_light=$Request.param.remark}</td>
<td    style="padding: 0px;">
    {php}
        if(!empty($listData)){
            foreach($listData as $kl=>$vl){
                // dump($vl['room_data']);dump(count($vl['room_data']));;die;
                if($vl['id'] == $vo['id'] && !empty($vl['room_data'])){

                    $count = count($vl['room_data']);
                     $i = 1;
                if(isset($vl['room_data']['room_type']) && $vl['room_data']['room_type'] == '尚未有房型'){
                    continue;
                }
                foreach($vl['room_data'] as $vll=>$kll){

                            $i++;
                            echo "<span>";
                            echo $kll['room_type'];
                            echo "</span>";
                         if(!($i > $count)){
                             echo "<hr  width='100%' noshade='#000'/>";
                        }
                    }
                }
            }
        }
    {/php}
</td>
<td style="padding: 0px;">
    {php}
        if(!empty($listData)){
            foreach($listData as $kl=>$vl){
                // dump($vl['room_data']);dump(count($vl['room_data']));;die;
                if($vl['id'] == $vo['id'] && !empty($vl['room_data'])){

                    $count = count($vl['room_data']);
                        $i = 1;
                    if(isset($vl['room_data']['room_type']) && $vl['room_data']['room_type'] == '尚未有房型'){
                        continue;
                    }
                    foreach($vl['room_data'] as $vll=>$kll){

                            $i++;
                            echo "<span>";
                            echo $kll['price'];
                            echo "</span>";
                            if(!($i > $count)){
                            echo "<hr  width='100%' noshade='#000'/>";
                            }
                    }
                }
            }
        }
    {/php}
</td>
<td style="padding: 0px;">
    {php}
        if(!empty($listData)){
            foreach($listData as $kl=>$vl){
                if($vl['id'] == $vo['id'] && !empty($vl['room_data'])){
                        $count = count($vl['room_data']);
                            $i = 1;
                        if(isset($vl['room_data']['include_breakfast']) && $vl['room_data']['include_breakfast'] == null){
                            continue;
                        }
                        foreach($vl['room_data'] as $vll=>$kll){
                        $i++;
                        echo "<span>";
                                                echo $kll['include_breakfast'] == 1 ? '是' : '否';
                                                echo "</span>";
                        if(!($i > $count)){
                        echo "<hr  width='100%' noshade='#000'/>";
                        }
                    }
                }
            }
        }
    {/php}
</td>
<td>
{if !empty($vo['create_time'])}
    {$vo.create_time | date='Y-m-d H:i:s',###}
{/if}
</td>